/**
 * iUI Dialog Extension
 *
 * This extension adds the dialog class within the base iui class, with the
 * perhaps ambitious goal of providing a standardized way for users to create
 * and manipulate a standard dialog box that is styled according to the iUI
 * skin to look as they should on the given platform. A default style is
 * provided (but should be replaced/extended by platform-specific skins). By
 * "standard dialog box" I mean an interface element with a title, message,
 * and buttons. This dialog box will not actually do anything by itself. It is
 * designed to be extended by the user (using JavaScript) to accomplish some
 * useful purpose. You can tell the class what buttons to put, but to make said
 * buttons do anything, you need to write your own code. (But since you need to
 * write your own code to display the dialog box in the first place, that
 * shouldn't be a problem.) Note that obviously, if you are looking for a basic
 * OK/Cancel dialog or text input, you should use the defined confirm() and
 * prompt() functions. This extension is for creating non-modal and/or fancy
 * dialogs that do things that you can't do normally.
 *
 * LICENSE: Permission is hereby granted, free of charge, to any person
 * obtaining a copy of this software and associated documentation files (the
 * "Software"), to deal in the Software without restriction, including without
 * limitation the rights to use, copy, modify, merge, publish, distribute,
 * sublicense, and/or sell copies of the Software, and to permit persons to
 * whom the Software is furnished to do so, subject to the following conditions:
 *
 * The above copyright notice and this permission notice shall be included in
 * all copies or substantial portions of the Software.
 *
 * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
 * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
 * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
 * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
 * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
 * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
 * SOFTWARE.
 *
 * @author		Eric Lindsey <eslindsey@gmail.com>
 * @copyright	2011 The iUI Project
 * @license		http://www.opensource.org/licenses/mit-license.php  MIT License
 * @version		0.1
 * @since		REL-0.40-alpha1 2011-09-30
 */

/**
 * Dialog class
 *
 * Adds standard dialog capability to iUI.
 *
 * @since	0.1
 * @param	message		String	Contents of the dialog box
 * @param	title		String	Title of the dialog box
 * @param	buttons		Array	Array of strings corresponding to button captions
 * @return				Object	The dialog box (an extended HTML DIV element)
 */
iui.prototype.Dialog = function(message, title, buttons)
{
	//Set the properties of the dialog
	this.message = message;
	this.title = title;
	this.buttons = [];

	//Convert the captions into HTML buttons
	for (var i = 0; i < buttons.length; i++)
	{
		this.buttons[i] = document.createElement('button');
		this.buttons[i].innerHTML = buttons[i];
	}

	/**
	 * Show function
	 *
	 * Displays the dialog box.
	 *
	 * @since	0.1
	 * @return	void
	 */
	function show()
	{
	}

	/**
	 * Hide function
	 *
	 * Hides the dialog box.
	 *
	 * @since	0.1
	 * @return	void
	 */
	function hide()
	{
	}
};
